/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package com.example.conf.teea;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * 系统用户Token
 *
 * @author Mark sunlightcs@gmail.com
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_user_token")
public class SysUserTokenEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	@Column(comment = "主键id")
	@TableId(value = "user_id", type = IdType.INPUT)
	private Long userId;

	/**
	 * 用户名
	 */
	@Column(comment = "用户名")
	private String username;

	/**
	 * token
	 */
	@Column(comment = "token")
	private String token;

	/**
	 * 过期时间
	 */
	@Column(comment = "过期时间")
	private LocalDateTime expireTime;

	/**
	 * 更新时间
	 */
	@Column(comment = "更新时间")
	private LocalDateTime updateTime;


}
